var express = require('express');
var router = express.Router();

router.get('/list', (req, res) => {
  var datas = [{
    Id:1,
    Name: "图书名称1",
    Price: 2,
    CDate:'2015-2-20',
    Auther:'张三'
  }, {
      Id:2,
    Name: "图书名称2",
    Price: 1,
    CDate:'2015-2-20',
    Auther:'李四'
  }]
  res.render('Book/list', {
    datas: datas
  });
})
router.get('/detail/:id', (req, res) => {
  res.render('Book/detail');
});

module.exports = router;
